package zuoye6;

public class Animal {
    protected String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
class Cat extends Animal{
    private String color;
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
}
class Dog extends Animal{
    private String cry;

    public String getCry(){
        return cry;
    }
    public void setCry(String cry) {
        this.cry = cry;
    }
}

